<template>
  <a-form ref="formRef" layout="vertical" :model="formState" :colon="false">
    <!-- <a-form-item ref="name" label="打印范围" name="area">
      <jnpf-select v-model:value="formState.area" :options="configOptions.printAreaOptions" />
    </a-form-item> -->
    <a-form-item label="纸张类型" name="paperSize">
      <jnpf-select v-model:value="formState.paperSize" :options="configOptions.paperTypeOptions" />
    </a-form-item>
    <a-form-item label="纸张方向" name="direction">
      <jnpf-radio v-model:value="formState.direction" :options="configOptions.printDirectionOptions" optionType="button" buttonStyle="solid" />
    </a-form-item>
    <a-form-item label="页面缩放" name="scale">
      <jnpf-select v-model:value="formState.scale" :options="configOptions.printScaleOptions" />
    </a-form-item>
    <a-form-item label="上下对齐" name="vAlign">
      <jnpf-radio v-model:value="formState.vAlign" :options="configOptions.printVAlignOptions" optionType="button" buttonStyle="solid" />
    </a-form-item>
    <a-form-item label="左右对齐" name="hAlign">
      <jnpf-radio v-model:value="formState.hAlign" :options="configOptions.printHAlignOptions" optionType="button" buttonStyle="solid" />
    </a-form-item>
    <a-form-item label="网格线" name="gridlines">
      <a-switch v-model:checked="formState.gridlines" />
    </a-form-item>
    <a-form-item label="页码" name="PageSize">
      <a-switch v-model:checked="formState.PageSize" />
    </a-form-item>
    <a-form-item label="报表名称" name="WorkbookTitle">
      <a-switch v-model:checked="formState.WorkbookTitle" />
    </a-form-item>
    <a-form-item label="工作表名" name="WorksheetTitle">
      <a-switch v-model:checked="formState.WorksheetTitle" />
    </a-form-item>
    <a-form-item label="当前日期" name="Date">
      <a-switch v-model:checked="formState.Date" />
    </a-form-item>
    <a-form-item label="当前时间" name="Time">
      <a-switch v-model:checked="formState.Time" />
    </a-form-item>
  </a-form>
</template>

<script lang="ts" setup>
  defineProps(['formState', 'configOptions']);
</script>
